<?php

namespace App\Console;

use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

class Kernel extends ConsoleKernel
{
    /**
     * The Artisan commands provided by your application.
     *
     * @var array
     */
    protected $commands = [
        //
    ];

    /**
     * Define the application's command schedule.
     *
     * @param \Illuminate\Console\Scheduling\Schedule $schedule
     *
     * @return void
     */
    protected function schedule(Schedule $schedule)
    {
        /*数仓中间库-同步待同步数据检查,需求要求任务执行时间为: 15:00~17:00*/
        $schedule->command('job:dw')->cron('*/10 12,13,14,15,16 * * *');
        /*检查数仓取数任务执行结果*/
        $schedule->command('job:dw_cron')->cron('1 17 * * *');
        /*3.10班级拨付余额查询>机构端>银行*/
        $schedule->command('job:pfs_head_queryClassBalance')->cron('55 * * * *');
        /*划拨&解冻结果查询>机构端>招行*/
        $schedule->command('job:pfs_head_queryTransferBill')->cron('10 * * * *');
        /*备份金退费借回结果查询>机构端>招行*/
        $schedule->command('job:pfs_head_queryWithdrawProvision')->cron('15 * * * *');
        /*3.7监管户动账查询>机构端>银行*/
        $schedule->command('job:pfs_head_queryHostDetail')->cron('20 * * * *');
        /*3.8监管户余额查询>机构端>银行*/
        $schedule->command('job:pfs_head_queryAccountBalance')->cron('20 * * * *');
        /*银行信息-银行入账数据核对*/
        $schedule->command('job:bank_entrydata_verify')->cron('59 * * * *');
        /*刷新枚举值记录表:城市、主体*/
        $schedule->command('job:enum')->cron('*/11 15,16,17 * * *');

    }

    /**
     * Register the commands for the application.
     *
     * @return void
     */
    protected function commands()
    {
        $this->load(__DIR__ . '/Commands');

        require base_path('routes/console.php');
    }
}
